package com.book.controller;

import com.book.adapter.Login3rdAdapter;
import com.book.items.composite.ProductComposite;
import com.book.pojo.UserInfo;
import com.book.service.ProductItemService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/product")
@RequiredArgsConstructor
public class ProductItemController {


    private final ProductItemService productItemService;


    @GetMapping("fetchAllItems")
    public ProductComposite login() {
        return productItemService.fetchAllItems();
    }


}
